<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
    </head>
    <body>
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <form action="" method="POST" id="rowForm">
        	
            <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tablegrid tableedit">
                <tr><td><?= translate('SELECT_AREA') ?>:</td><td><?= $arealist ?></td></tr>
                <tr><td></td><td><font color='blue'><?= translate('MENU_SEAL_PULL_ONLINE')?></font></td></tr>
                <tr><td><?= translate('ROLE_NAME')?>:</td><td>
                        <input type='text' name="row[role_name]" id='role_name' size='25' value="<?= $role_name ?>">&nbsp;&nbsp;
                        <input type='submit' value="<?= translate('MENU_SEAL_PULL_ONLINE_ROLENAME')?>" id="submit1"></td></tr>
                <tr><td></td><td><font color='blue'><?= translate('GM_COMMAND')?></font></td></tr>
                <tr><td><?= translate('ROLE_NAME') ?>:</td><td><input type="text" name="row[role_id]" id="role_id" size="25" value="<?= $role_name ?>"/></td></tr>
                <tr><td><?= translate('GM_COMMAND') ?>:</td><td><input type="text" name="row[gm_command]" id="gm_command" size="25" /></td></tr>
                <tr>
                  <td><?= translate('SEAL_GMCOMMAN_DESCRIPTION') ?>:</td>
                  <td><textarea id="description" name="row[description]" cols="60" rows="3"></textarea></td>
                </tr>
                <tr><td></td><td><input type="submit" value="<?= translate('SUBMIT') ?>" id="submit"/> <input type="reset" value="<?= translate('RESET') ?>" id="reset"/></td></tr>
            </table>
        </form>
        <script type="text/javascript">
            SG.init("core.form", function() {
                $.formValidator.initConfig({formid: "#rowForm", submitonce: true});
                $("#area_host").formValidator({empty: false, onshow: '<?= translate('PLASE_SELECT') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
                $("#role_name").formValidator({empty: false, onshow: '<?= translate('PLASE_INPUT_ROLE_NAME') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});                   
                //$("#gm_command").formValidator({empty: false, onshow: '<?= translate('C_NOT_EMPTY') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
				//$("#description").formValidator({empty: false, onshow: '<?= translate('C_NOT_EMPTY') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
            });
        </script>
    </body>
</html>
